package com.woniuxy.service;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: 马宇航
 * @Todo: TODO
 * @DateTime: 22/03/28/0028 下午 3:10
 * @Component: 成都蜗牛学苑
 **/
public class ProxyFactoryBeanTest {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("application.xml");
        RbacManagerService rbacManagerService = (RbacManagerService) applicationContext.getBean("factoryBean");
        rbacManagerService.addOne();
        rbacManagerService.findAll();
        rbacManagerService.findOne();
    }
}
